import request from "@/utils/Request";
import type {Statistics, UserUploadStatistics} from "@/types/Statistics";

export const getCategoryDataApi = () => {
    return request<string, Result<Statistics[]>>({
            url: `/statistics/category`,
            method: 'get',
        }
    )
}
export const getHotDataApi = () => {
    return request<string, Result<Statistics[]>>({
            url: `/statistics/hot`,
            method: 'get',
        }
    )
}

export const getUserIncreaseApi = () => {
    return request<string, Result<Statistics[]>>({
            url: `/statistics/user/increase`,
            method: 'get',
        }
    )
}

export const getAnimalIncreaseApi = () => {
    return request<string, Result<number[]>>({
            url: `/statistics/animal/increase`,
            method: 'get',
        }
    )
}

export const getUserUploadDataApi= () => {
    return request<string, Result<UserUploadStatistics[]>>({
            url: `/statistics/user/upload`,
            method: 'get',
        }
    )
}